﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Xiaov.SmartWeb.Application.SupCan;
using Xiaov.SmartWeb.Application.Models;

namespace Xiaov.SmartWeb.Application.TZGC
{
    public partial class JHDY : System.Web.UI.Page
    {
        public string tableName = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            tableName = Request.QueryString["tableName"].ToString();            
        }

        protected void btn_save_Click(object sender, EventArgs e)
        {
            if (HDData.Value != null && HDData.Value != "")
            {
                if (tableName == "yt_jhdy")
                {
                    ConvertXmlToSql<JhdyModel>.AddUpdateDeleteObject(HDData.Value, "yt_jhdy", true, true, true);
                }
                else if (tableName == "yt_gcbieming")
                {
                    ConvertXmlToSql<GcBieMingModel>.AddUpdateDeleteObject(HDData.Value, "yt_gcbieming", true, true, true);
                }
            }
        }
    }
}